﻿#pragma once
#include "afxdialogex.h"


// CSHOWDlg 对话框

class CSHOWDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CSHOWDlg)

public:
	CSHOWDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CSHOWDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_JIEQU_DLG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	// 屏幕宽高
	int m_nScreenWidth;
	int m_nScreenHeight;

	//内存 dc
	CDC m_memDc;

	afx_msg void OnPaint();
	//afx_msg LRESULT OnNcHitTest(CPoint point);
	virtual BOOL OnInitDialog();
	// 橡皮筋对象
	CRectTracker m_tracker;
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
};
